<?php
/**
 * Table_Tags
 *
 * @package Movoin Blog
 * @subpackage Table
 *
 */

//{{include
FLEA::loadClass ('FLEA_Db_TableDataGateway');
//}}

class Table_Tags extends FLEA_Db_TableDataGateway {

    //数据表名称
    var $tableName = 'tags';

    //数据表主键字段名
    var $primaryKey = 'tag_id';

    //定义多对多关联
    var $manyToMany = array(
        'tableClass' => 'table_posts',
        'joinTable' => 'posts_has_tags',
        'mappingName' => 'posts'
    );

}